<!DOCTYPE html>
<html lang="en">
  <head>
    <title>AttachmentManager Class Reference</title>
    <link rel="stylesheet" type="text/css" href="../css/jazzy.css" />
    <link rel="stylesheet" type="text/css" href="../css/highlight.css" />
    <meta charset='utf-8'>
    <script src="../js/jquery.min.js" defer></script>
    <script src="../js/jazzy.js" defer></script>
    
  </head>
  <body>
    <a name="//apple_ref/swift/Class/AttachmentManager" class="dashAnchor"></a>
    <a title="AttachmentManager Class Reference"></a>
    <header>
      <div class="content-wrapper">
        <p><a href="../index.html">InputBarAccessoryView Docs</a> (65% documented)</p>
      </div>
    </header>
    <div class="content-wrapper">
      <p id="breadcrumbs">
        <a href="../index.html">InputBarAccessoryView Reference</a>
        <img id="carat" src="../img/carat.png" />
        AttachmentManager Class Reference
      </p>
    </div>
    <div class="content-wrapper">
      <nav class="sidebar">
        <ul class="nav-groups">
          <li class="nav-group-name">
            <a href="../Classes.html">Classes</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../Classes/AttachmentCell.html">AttachmentCell</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/AttachmentCollectionView.html">AttachmentCollectionView</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/AttachmentManager.html">AttachmentManager</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/AttachmentManager/Attachment.html">– Attachment</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/AutocompleteCell.html">AutocompleteCell</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/AutocompleteManager.html">AutocompleteManager</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/AutocompleteSession.html">AutocompleteSession</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/AutocompleteTableView.html">AutocompleteTableView</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/ImageAttachmentCell.html">ImageAttachmentCell</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/InputBarAccessoryView.html">InputBarAccessoryView</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/InputBarButtonItem.html">InputBarButtonItem</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/InputBarButtonItem/Spacing.html">– Spacing</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/InputBarSendButton.html">InputBarSendButton</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/InputBarViewController.html">InputBarViewController</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/InputStackView.html">InputStackView</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/InputStackView/Position.html">– Position</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/InputTextView.html">InputTextView</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/KeyboardManager.html">KeyboardManager</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/SeparatorLine.html">SeparatorLine</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a href="../Enums.html">Enumerations</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../Enums/KeyboardEvent.html">KeyboardEvent</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a href="../Extensions.html">Extensions</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../Extensions/NSAttributedString.html">NSAttributedString</a>
              </li>
              <li class="nav-group-task">
                <a href="../Extensions/NSAttributedString/Key.html">– Key</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a href="../Protocols.html">Protocols</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../Protocols/AttachmentManagerDataSource.html">AttachmentManagerDataSource</a>
              </li>
              <li class="nav-group-task">
                <a href="../Protocols/AttachmentManagerDelegate.html">AttachmentManagerDelegate</a>
              </li>
              <li class="nav-group-task">
                <a href="../Protocols/AutocompleteManagerDataSource.html">AutocompleteManagerDataSource</a>
              </li>
              <li class="nav-group-task">
                <a href="../Protocols/AutocompleteManagerDelegate.html">AutocompleteManagerDelegate</a>
              </li>
              <li class="nav-group-task">
                <a href="../Protocols/InputBarAccessoryViewDelegate.html">InputBarAccessoryViewDelegate</a>
              </li>
              <li class="nav-group-task">
                <a href="../Protocols/InputItem.html">InputItem</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a href="../Structs.html">Structures</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../Structs/AutocompleteCompletion.html">AutocompleteCompletion</a>
              </li>
              <li class="nav-group-task">
                <a href="../Structs/HorizontalEdgePadding.html">HorizontalEdgePadding</a>
              </li>
              <li class="nav-group-task">
                <a href="../Structs/KeyboardNotification.html">KeyboardNotification</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a href="../Typealiases.html">Type Aliases</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../Typealiases.html#/s:21InputBarAccessoryView011AttachmentsD0a">AttachmentsView</a>
              </li>
              <li class="nav-group-task">
                <a href="../Typealiases.html#/s:21InputBarAccessoryView0A7Managera">InputManager</a>
              </li>
            </ul>
          </li>
        </ul>
      </nav>
      <article class="main-content">
        <section>
          <section class="section">
            <h1>AttachmentManager</h1>
              <div class="declaration">
                <div class="language">
                  <pre class="highlight swift"><code><span class="kd">open</span> <span class="kd">class</span> <span class="kt">AttachmentManager</span> <span class="p">:</span> <span class="kt">NSObject</span><span class="p">,</span> <span class="kt">InputPlugin</span></code></pre>

                </div>
              </div>
            <p>Undocumented</p>

          </section>
          <section class="section task-group-section">
            <div class="task-group">
              <ul>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:21InputBarAccessoryView17AttachmentManagerC0E0O"></a>
                    <a name="//apple_ref/swift/Enum/Attachment" class="dashAnchor"></a>
                    <a class="token" href="#/s:21InputBarAccessoryView17AttachmentManagerC0E0O">Attachment</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Undocumented</p>

                        <a href="../Classes/AttachmentManager/Attachment.html" class="slightly-smaller">See more</a>
                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">enum</span> <span class="kt">Attachment</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/Properties%20[Public]"></a>
                <a name="//apple_ref/swift/Section/Properties [Public]" class="dashAnchor"></a>
                <a href="#/Properties%20[Public]">
                  <h3 class="section-name">Properties [Public]</h3>
                </a>
              </div>
              <ul>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:21InputBarAccessoryView17AttachmentManagerC8delegateAA0eF8Delegate_pSgvp"></a>
                    <a name="//apple_ref/swift/Property/delegate" class="dashAnchor"></a>
                    <a class="token" href="#/s:21InputBarAccessoryView17AttachmentManagerC8delegateAA0eF8Delegate_pSgvp">delegate</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>A protocol that can recieve notifications from the <code>AttachmentManager</code></p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">open</span> <span class="k">weak</span> <span class="k">var</span> <span class="nv">delegate</span><span class="p">:</span> <span class="kt"><a href="../Protocols/AttachmentManagerDelegate.html">AttachmentManagerDelegate</a></span><span class="p">?</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:21InputBarAccessoryView17AttachmentManagerC10dataSourceAA0ef4DataH0_pSgvp"></a>
                    <a name="//apple_ref/swift/Property/dataSource" class="dashAnchor"></a>
                    <a class="token" href="#/s:21InputBarAccessoryView17AttachmentManagerC10dataSourceAA0ef4DataH0_pSgvp">dataSource</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>A protocol to passes data to the <code>AttachmentManager</code></p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">open</span> <span class="k">weak</span> <span class="k">var</span> <span class="nv">dataSource</span><span class="p">:</span> <span class="kt"><a href="../Protocols/AttachmentManagerDataSource.html">AttachmentManagerDataSource</a></span><span class="p">?</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:21InputBarAccessoryView17AttachmentManagerC010attachmentD0AA0e10CollectionD0Cvp"></a>
                    <a name="//apple_ref/swift/Property/attachmentView" class="dashAnchor"></a>
                    <a class="token" href="#/s:21InputBarAccessoryView17AttachmentManagerC010attachmentD0AA0e10CollectionD0Cvp">attachmentView</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Undocumented</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">open</span> <span class="kd">lazy</span> <span class="k">var</span> <span class="nv">attachmentView</span><span class="p">:</span> <span class="kt"><a href="../Classes/AttachmentCollectionView.html">AttachmentCollectionView</a></span> <span class="p">{</span> <span class="k">get</span> <span class="k">set</span> <span class="p">}</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:21InputBarAccessoryView17AttachmentManagerC11attachmentsSayAC0E0OGvp"></a>
                    <a name="//apple_ref/swift/Property/attachments" class="dashAnchor"></a>
                    <a class="token" href="#/s:21InputBarAccessoryView17AttachmentManagerC11attachmentsSayAC0E0OGvp">attachments</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>The attachments that the managers holds</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">private(set)</span> <span class="kd">public</span> <span class="k">var</span> <span class="nv">attachments</span><span class="p">:</span> <span class="p">[</span><span class="kt">AttachmentManager</span><span class="o">.</span><span class="kt"><a href="../Classes/AttachmentManager/Attachment.html">Attachment</a></span><span class="p">]</span> <span class="p">{</span> <span class="k">get</span> <span class="k">set</span> <span class="p">}</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:21InputBarAccessoryView17AttachmentManagerC12isPersistentSbvp"></a>
                    <a name="//apple_ref/swift/Property/isPersistent" class="dashAnchor"></a>
                    <a class="token" href="#/s:21InputBarAccessoryView17AttachmentManagerC12isPersistentSbvp">isPersistent</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>A flag you can use to determine if you want the manager to be always visible</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">open</span> <span class="k">var</span> <span class="nv">isPersistent</span><span class="p">:</span> <span class="kt">Bool</span> <span class="p">{</span> <span class="k">get</span> <span class="k">set</span> <span class="p">}</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:21InputBarAccessoryView17AttachmentManagerC07showAddE4CellSbvp"></a>
                    <a name="//apple_ref/swift/Property/showAddAttachmentCell" class="dashAnchor"></a>
                    <a class="token" href="#/s:21InputBarAccessoryView17AttachmentManagerC07showAddE4CellSbvp">showAddAttachmentCell</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>A flag to determine if the AddAttachmentCell is visible</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">open</span> <span class="k">var</span> <span class="nv">showAddAttachmentCell</span><span class="p">:</span> <span class="kt">Bool</span> <span class="p">{</span> <span class="k">get</span> <span class="k">set</span> <span class="p">}</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:21InputBarAccessoryView17AttachmentManagerC9tintColorSo7UIColorCvp"></a>
                    <a name="//apple_ref/swift/Property/tintColor" class="dashAnchor"></a>
                    <a class="token" href="#/s:21InputBarAccessoryView17AttachmentManagerC9tintColorSo7UIColorCvp">tintColor</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>The color applied to the backgroundColor of the deleteButton in each <code><a href="../Classes/AttachmentCell.html">AttachmentCell</a></code></p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">open</span> <span class="k">var</span> <span class="nv">tintColor</span><span class="p">:</span> <span class="kt">UIColor</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/Initialization"></a>
                <a name="//apple_ref/swift/Section/Initialization" class="dashAnchor"></a>
                <a href="#/Initialization">
                  <h3 class="section-name">Initialization</h3>
                </a>
              </div>
              <ul>
                <li class="item">
                  <div>
                    <code>
                    <a name="/c:@M@InputBarAccessoryView@objc(cs)AttachmentManager(im)init"></a>
                    <a name="//apple_ref/swift/Method/init()" class="dashAnchor"></a>
                    <a class="token" href="#/c:@M@InputBarAccessoryView@objc(cs)AttachmentManager(im)init">init()</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Undocumented</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="k">override</span> <span class="nf">init</span><span class="p">()</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/InputPlugin"></a>
                <a name="//apple_ref/swift/Section/InputPlugin" class="dashAnchor"></a>
                <a href="#/InputPlugin">
                  <h3 class="section-name">InputPlugin</h3>
                </a>
              </div>
              <ul>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:21InputBarAccessoryView17AttachmentManagerC10reloadDatayyF"></a>
                    <a name="//apple_ref/swift/Method/reloadData()" class="dashAnchor"></a>
                    <a class="token" href="#/s:21InputBarAccessoryView17AttachmentManagerC10reloadDatayyF">reloadData()</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Undocumented</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">open</span> <span class="kd">func</span> <span class="nf">reloadData</span><span class="p">()</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:21InputBarAccessoryView17AttachmentManagerC10invalidateyyF"></a>
                    <a name="//apple_ref/swift/Method/invalidate()" class="dashAnchor"></a>
                    <a class="token" href="#/s:21InputBarAccessoryView17AttachmentManagerC10invalidateyyF">invalidate()</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Invalidates the <code>AttachmentManagers</code> session by removing all attachments</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">open</span> <span class="kd">func</span> <span class="nf">invalidate</span><span class="p">()</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:21InputBarAccessoryView17AttachmentManagerC06handleA02ofSbyXl_tF"></a>
                    <a name="//apple_ref/swift/Method/handleInput(of:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:21InputBarAccessoryView17AttachmentManagerC06handleA02ofSbyXl_tF">handleInput(of:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Appends the object to the attachments</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">open</span> <span class="kd">func</span> <span class="nf">handleInput</span><span class="p">(</span><span class="n">of</span> <span class="nv">object</span><span class="p">:</span> <span class="kt">AnyObject</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Bool</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>object</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The object to append</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/API%20[Public]"></a>
                <a name="//apple_ref/swift/Section/API [Public]" class="dashAnchor"></a>
                <a href="#/API%20[Public]">
                  <h3 class="section-name">API [Public]</h3>
                </a>
              </div>
              <ul>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:21InputBarAccessoryView17AttachmentManagerC06insertE0_2atyAC0E0O_SitF"></a>
                    <a name="//apple_ref/swift/Method/insertAttachment(_:at:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:21InputBarAccessoryView17AttachmentManagerC06insertE0_2atyAC0E0O_SitF">insertAttachment(_:at:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Performs an animated insertion of an attachment at an index</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">open</span> <span class="kd">func</span> <span class="nf">insertAttachment</span><span class="p">(</span><span class="n">_</span> <span class="nv">attachment</span><span class="p">:</span> <span class="kt"><a href="../Classes/AttachmentManager/Attachment.html">Attachment</a></span><span class="p">,</span> <span class="n">at</span> <span class="nv">index</span><span class="p">:</span> <span class="kt">Int</span><span class="p">)</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>index</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The index to insert the attachment at</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:21InputBarAccessoryView17AttachmentManagerC06removeE02atySi_tF"></a>
                    <a name="//apple_ref/swift/Method/removeAttachment(at:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:21InputBarAccessoryView17AttachmentManagerC06removeE02atySi_tF">removeAttachment(at:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Performs an animated removal of an attachment at an index</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">open</span> <span class="kd">func</span> <span class="nf">removeAttachment</span><span class="p">(</span><span class="n">at</span> <span class="nv">index</span><span class="p">:</span> <span class="kt">Int</span><span class="p">)</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>index</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The index to remove the attachment at</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/UICollectionViewDelegate"></a>
                <a name="//apple_ref/swift/Section/UICollectionViewDelegate" class="dashAnchor"></a>
                <a href="#/UICollectionViewDelegate">
                  <h3 class="section-name">UICollectionViewDelegate</h3>
                </a>
              </div>
              <ul>
                <li class="item">
                  <div>
                    <code>
                    <a name="/c:@CM@InputBarAccessoryView@objc(cs)AttachmentManager(im)collectionView:didSelectItemAtIndexPath:"></a>
                    <a name="//apple_ref/swift/Method/collectionView(_:didSelectItemAt:)" class="dashAnchor"></a>
                    <a class="token" href="#/c:@CM@InputBarAccessoryView@objc(cs)AttachmentManager(im)collectionView:didSelectItemAtIndexPath:">collectionView(_:didSelectItemAt:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Undocumented</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">final</span> <span class="kd">public</span> <span class="kd">func</span> <span class="nf">collectionView</span><span class="p">(</span><span class="n">_</span> <span class="nv">collectionView</span><span class="p">:</span> <span class="kt">UICollectionView</span><span class="p">,</span> <span class="n">didSelectItemAt</span> <span class="nv">indexPath</span><span class="p">:</span> <span class="kt">IndexPath</span><span class="p">)</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/UICollectionViewDataSource"></a>
                <a name="//apple_ref/swift/Section/UICollectionViewDataSource" class="dashAnchor"></a>
                <a href="#/UICollectionViewDataSource">
                  <h3 class="section-name">UICollectionViewDataSource</h3>
                </a>
              </div>
              <ul>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:21InputBarAccessoryView17AttachmentManagerC13numberOfItems9inSectionS2i_tF"></a>
                    <a name="//apple_ref/swift/Method/numberOfItems(inSection:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:21InputBarAccessoryView17AttachmentManagerC13numberOfItems9inSectionS2i_tF">numberOfItems(inSection:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Undocumented</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">final</span> <span class="kd">public</span> <span class="kd">func</span> <span class="nf">numberOfItems</span><span class="p">(</span><span class="n">inSection</span> <span class="nv">section</span><span class="p">:</span> <span class="kt">Int</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Int</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/c:@CM@InputBarAccessoryView@objc(cs)AttachmentManager(im)collectionView:numberOfItemsInSection:"></a>
                    <a name="//apple_ref/swift/Method/collectionView(_:numberOfItemsInSection:)" class="dashAnchor"></a>
                    <a class="token" href="#/c:@CM@InputBarAccessoryView@objc(cs)AttachmentManager(im)collectionView:numberOfItemsInSection:">collectionView(_:numberOfItemsInSection:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Undocumented</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">final</span> <span class="kd">public</span> <span class="kd">func</span> <span class="nf">collectionView</span><span class="p">(</span><span class="n">_</span> <span class="nv">collectionView</span><span class="p">:</span> <span class="kt">UICollectionView</span><span class="p">,</span> <span class="n">numberOfItemsInSection</span> <span class="nv">section</span><span class="p">:</span> <span class="kt">Int</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Int</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/c:@CM@InputBarAccessoryView@objc(cs)AttachmentManager(im)collectionView:cellForItemAtIndexPath:"></a>
                    <a name="//apple_ref/swift/Method/collectionView(_:cellForItemAt:)" class="dashAnchor"></a>
                    <a class="token" href="#/c:@CM@InputBarAccessoryView@objc(cs)AttachmentManager(im)collectionView:cellForItemAtIndexPath:">collectionView(_:cellForItemAt:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Undocumented</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">final</span> <span class="kd">public</span> <span class="kd">func</span> <span class="nf">collectionView</span><span class="p">(</span><span class="n">_</span> <span class="nv">collectionView</span><span class="p">:</span> <span class="kt">UICollectionView</span><span class="p">,</span> <span class="n">cellForItemAt</span> <span class="nv">indexPath</span><span class="p">:</span> <span class="kt">IndexPath</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">UICollectionViewCell</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/UICollectionViewDelegateFlowLayout"></a>
                <a name="//apple_ref/swift/Section/UICollectionViewDelegateFlowLayout" class="dashAnchor"></a>
                <a href="#/UICollectionViewDelegateFlowLayout">
                  <h3 class="section-name">UICollectionViewDelegateFlowLayout</h3>
                </a>
              </div>
              <ul>
                <li class="item">
                  <div>
                    <code>
                    <a name="/c:@CM@InputBarAccessoryView@objc(cs)AttachmentManager(im)collectionView:layout:sizeForItemAtIndexPath:"></a>
                    <a name="//apple_ref/swift/Method/collectionView(_:layout:sizeForItemAt:)" class="dashAnchor"></a>
                    <a class="token" href="#/c:@CM@InputBarAccessoryView@objc(cs)AttachmentManager(im)collectionView:layout:sizeForItemAtIndexPath:">collectionView(_:layout:sizeForItemAt:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Undocumented</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">final</span> <span class="kd">public</span> <span class="kd">func</span> <span class="nf">collectionView</span><span class="p">(</span><span class="n">_</span> <span class="nv">collectionView</span><span class="p">:</span> <span class="kt">UICollectionView</span><span class="p">,</span> <span class="n">layout</span> <span class="nv">collectionViewLayout</span><span class="p">:</span> <span class="kt">UICollectionViewLayout</span><span class="p">,</span> <span class="n">sizeForItemAt</span> <span class="nv">indexPath</span><span class="p">:</span> <span class="kt">IndexPath</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">CGSize</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:21InputBarAccessoryView17AttachmentManagerC06createE4Cell2in2atAA0eH0CSo012UICollectionD0C_10Foundation9IndexPathVtF"></a>
                    <a name="//apple_ref/swift/Method/createAttachmentCell(in:at:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:21InputBarAccessoryView17AttachmentManagerC06createE4Cell2in2atAA0eH0CSo012UICollectionD0C_10Foundation9IndexPathVtF">createAttachmentCell(in:at:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Undocumented</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">open</span> <span class="kd">func</span> <span class="nf">createAttachmentCell</span><span class="p">(</span><span class="k">in</span> <span class="nv">collectionView</span><span class="p">:</span> <span class="kt">UICollectionView</span><span class="p">,</span> <span class="n">at</span> <span class="nv">indexPath</span><span class="p">:</span> <span class="kt">IndexPath</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt"><a href="../Classes/AttachmentCell.html">AttachmentCell</a></span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
          </section>
        </section>
        <section id="footer">
          <p>&copy; 2019 <a class="link" href="https://github.com/nathantannar4/InputBarAccessoryView" target="_blank" rel="external">Nathan Tannar</a>. All rights reserved. (Last updated: 2019-06-01)</p>
          <p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.9.3</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
        </section>
      </article>
    </div>
  </body>
</div>
</html>
